import time
from io import BytesIO

from selenium import webdriver
from selenium.webdriver.common.by import By

driver = webdriver.Chrome()

# 图片爬取
driver.get("https://pic.netbian.com/4kdongman/")
time.sleep(2)

imgs = driver.find_elements(By.XPATH, '//div[@class="page"]/a')
for img in imgs:
    print(img.get_attribute('href'))

imgs[1].click()

time.sleep(16)
driver.quit()
